package com.rongji.dfish.demo.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * DfishViewNode entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "DFISH_VIEW_NODE")
public class DfishViewNode implements java.io.Serializable {

	// Fields

	private String nodeId;
	private String viewId;
	private String nodeType;
	private String nodeName;
	private String nodeParent;
	private String nodeContent;
	private Long nodeOrder;

	// Constructors

	/** default constructor */
	public DfishViewNode() {
	}

	/** minimal constructor */
	public DfishViewNode(String nodeId, String viewId) {
		this.nodeId = nodeId;
		this.viewId = viewId;
	}

	/** full constructor */
	public DfishViewNode(String nodeId, String viewId, String nodeType, String nodeName, String nodeParent,
	        String nodeContent, Long nodeOrder) {
		this.nodeId = nodeId;
		this.viewId = viewId;
		this.nodeType = nodeType;
		this.nodeName = nodeName;
		this.nodeParent = nodeParent;
		this.nodeContent = nodeContent;
		this.nodeOrder = nodeOrder;
	}

	// Property accessors
	@Id
	@Column(name = "NODE_ID", unique = true, nullable = false, length = 16)
	public String getNodeId() {
		return this.nodeId;
	}

	public void setNodeId(String nodeId) {
		this.nodeId = nodeId;
	}

	@Column(name = "VIEW_ID", nullable = false, length = 16)
	public String getViewId() {
		return this.viewId;
	}

	public void setViewId(String viewId) {
		this.viewId = viewId;
	}

	@Column(name = "NODE_TYPE", length = 64)
	public String getNodeType() {
		return this.nodeType;
	}

	public void setNodeType(String nodeType) {
		this.nodeType = nodeType;
	}

	@Column(name = "NODE_NAME")
	public String getNodeName() {
		return this.nodeName;
	}

	public void setNodeName(String nodeName) {
		this.nodeName = nodeName;
	}

	@Column(name = "NODE_PARENT", length = 16)
	public String getNodeParent() {
		return this.nodeParent;
	}

	public void setNodeParent(String nodeParent) {
		this.nodeParent = nodeParent;
	}

	@Column(name = "NODE_CONTENT", length = 4000)
	public String getNodeContent() {
		return this.nodeContent;
	}

	public void setNodeContent(String nodeContent) {
		this.nodeContent = nodeContent;
	}

	@Column(name = "NODE_ORDER", scale = 0)
	public Long getNodeOrder() {
		return this.nodeOrder;
	}

	public void setNodeOrder(Long nodeOrder) {
		this.nodeOrder = nodeOrder;
	}

}